package com.bigdata.service.mysql;

import com.bigdata.model.Result;
import com.bigdata.model.SearchModel;
import com.bigdata.mysql.entity.JkfwUser;
import com.bigdata.mysql.entity.JkfwUserExample;
import com.bigdata.service.mysql.base.IBaseService;
import com.bigdata.vo.VoJkfwUser;
import org.springframework.transaction.annotation.Transactional;

/**
 * JkfwUser的服务接口
 *
 * @author
 */
public interface JkfwUserService extends IBaseService<JkfwUser, JkfwUserExample> {

    Result queryPage(SearchModel searchModel);

    /**
     * 查询用户包括角色
     *
     * @param * @param id
     * @return com.bigdata.model.Result
     * @author lly
     * @date 2020/3/22 20:09
     */
    Result selectByUserid(String id);

    Result addUser(JkfwUser user);

    @Transactional(readOnly = false)
    Result addUserRole(VoJkfwUser vouser);

    Boolean ckUserName(String username);

    Result updateUser(JkfwUser user);

    @Transactional(readOnly = false)
    Result updateUserRole(VoJkfwUser vuser);

    Result intPassword(String userid, String password);

    JkfwUser queryUserLogin(String username);

    Result ckLoginToken(String username, String pwd);

    Result delUser(String userid);
}
